const banner = require('../indexBanner.js');

// console.log(banner) banner => indexBanner
// console.log(banner)
// banner.insertMany([{
//   name: "图1",
//   imgs: "https://gd-hbimg.huaban.com/da18b944a5e37ff0f5d6b0a7487d3848ba0f71028f2188-orPftH_fw1200webp"
// }, {
//   name: "图2",
//   imgs: "https://gd-hbimg.huaban.com/4cf65df4621262ac049834cadd4744e5cca9c5f877aac0-pKoX76_fw1200webp"
// }, {
//   name: "图3",
//   imgs: "https://gd-hbimg.huaban.com/1957d328f2cc1abf5312236eac4b37300a210f1591988f-Z9i85r_fw1200webp"
// }, {
//   name: "图4",
//   imgs: "https://gd-hbimg.huaban.com/11f7ccbce9781eaa6c0cc17ca3e62c7940d79c292c2d9-fJXAAt_fw1200webp"
// }]).then(res=>{
//   return banner.find()
// }).then(res=>{
//   console.log(res)
// })

// banner.find().then(res=>{
//   console.log(res)
// })

// banner.deleteMany({}).then(res=>{
//   return banner.find()
// }).then(res=>{
//   console.log(res)
// })

  // banner.insertMany([{
  //     name: "图1",
  //     imgs: "https://g-search1.alicdn.com/img/bao/uploaded/i4/imgextra/i4/45106584/O1CN01GisySg1yVWVNgME1X_!!0-saturn_solar.jpg_580x580Q90.jpg_.webp"
  //   }]).then(res=>{
  //     return banner.find()
  //   }).then(res=>{
  //     console.log(res)
  //   })




